package com.example.composestudy.widget.color

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import com.example.composestudy.ui.theme.Purple500

@Preview(showBackground = true)
@Composable
fun ColorDemo() {
    Column(
        modifier = Modifier.fillMaxSize().background(MaterialTheme.colors.secondary)
    ) {
        Text("Black", color = Color.Black)
        Text("DarkGray", color = Color.DarkGray)
        Text("Gray", color = Color.Gray)
        Text("LightGray", color = Color.LightGray)
        Text("White", color = Color.White, modifier = Modifier.background(Color.Black))
        Text("Red", color = Color.Red)
        Text("Green", color = Color.Green)
        Text("Blue", color = Color.Blue)
        Text("Yellow", color = Color.Yellow)
        Text("Cyan", color = Color.Cyan)
        Text("Magenta", color = Color.Magenta)
    }
}